
import numpy as np


def calculate_circle_radius(points, center):
    distances = np.sqrt((points[:, 0] - center[0])**2 + (points[:, 1] - center[1])**2)
    sorted_indices = np.argsort(distances)
    radius_w = distances[sorted_indices[1]]  # 取第二个最近的距离作为半径
    return radius_w
